package appendonly

import (
	"os"
	"willow/cachestring"
	"willow/common/sdk"
)

var pathRDB  = "save/appendonly.rdb"

func SaveStringRDBk()  {
	mapSds := cachestring.GetMap()
	str := sdk.JsonEncode(mapSds)
	sdk.WriteFile(pathRDB,str,os.O_WRONLY | os.O_CREATE | os.O_TRUNC)
}

//func GetStringRBD()  {
	//temp := map[string]cachestring.SdsString{}
	//
	//sdsMapT := sdk.JsonDecode();
//}